
<%@ page import="sige.Contrato" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'contrato.label', default: 'Contrato')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<center>
        	<h1><g:message code="default.list.label" args="[entityName]" /></h1>
        </center>
        <ul class="breadcrumb">
          <li>
            <g:link controller="principal">
              <i class="icon-home"></i>
              <g:message code="default.home.label"/>
            </g:link>
            <span class="divider"><g:message code="span.divider" /></span>
          </li>
        </ul>
        
        <g:if test="${flash.message}">
          <div class="alert alert-info">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            ${flash.message}
          </div>
        </g:if>
		<div id="list-contrato" class="span12" role="main">
			<g:form action="list" class="form-search">
              <div class="input-append">
                <g:remoteField class="span4 search-query" action="updateTable" 
                    update="table" name="campo" />
                <button type="submit" class="btn btn-primary">
                  <i class="icon-search icon-white"></i>
                </button>
              </div>
              <span class="help-block">
                <g:message code="contrato.id.label" default="ID do contrato" />
              </span>
            </g:form>
			<div id="table">
                <g:render template="table"/>
            </div>
			<div class="pagination" align="center">
				<g:paginate total="${contratoInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
